package net.huashitong.service.sys;


import net.huashitong.ssydt.sys.entity.SsSysBas;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.08.22
 */
@Service
@Transactional
public class SysServiceImpl implements SysService {

    private SsSysBasService ssSysBasService;

    @Autowired
    public SysServiceImpl(SsSysBasService ssSysBasService) {
        this.ssSysBasService = ssSysBasService;
    }

    @Override
    public List<SsSysBas> basList(String basType) {
        return ssSysBasService.queryNotTypeByBasType(basType);
    }

    @Override
    public SsSysBas getBas(String basType, String dictValue) {
        return ssSysBasService.getByBasTypeAndDictValue(basType, dictValue);
    }
}
